home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
frefs11.lha
/
FetchRefs
/
FetchRefs.doc
< prev
next >
Wrap
Text File
|
1994-10-20
|
8KB
|
219 lines
TABLE OF CONTENTS
FetchRefs/FR_ADD
FetchRefs/FR_CLEAR
FetchRefs/FR_GET
FetchRefs/FR_NEW
FetchRefs/FR_QUIT
FetchRefs/FR_ADD FetchRefs/FR_ADD
NAME
FR_ADD -- load additional index files
SYNOPSIS
FR_ADD FILE/M
FR_ADD [wildcard ...]
FUNCTION
FR_ADD will load extra index files and add them to the internal
list. The index files already in memory are not removed.
INPUTS
FILE/M - wild card specification(s) for the index files to load.
RESULTS
None.
BUGS
None known.
SEE ALSO
FR_CLEAR, FR_NEW
FetchRefs/FR_CLEAR FetchRefs/FR_CLEAR
NAME
FR_CLEAR -- remove any index files from memory
SYNOPSIS
FR_CLEAR
FUNCTION
Free all memory allocated to store loaded index files. Most of the
memory FetchRefs uses is for the index file(s), so this will put
FetchRefs in a low-memory sleep mode. By later calling FR_ADD or
FR_NEW the original state can again be achived.
INPUTS
None.
RESULTS
None.
BUGS
None known.
SEE ALSO
FR_ADD, FR_NEW
FetchRefs/FR_GET FetchRefs/FR_GET
NAME
FR_GET -- get a reference into a file or the clipboard
SYNOPSIS
FR_GET FIND/A,TO/A,PUBSCREEN,FILEREF/S,CASE/S
FR_GET keyword filename [public screen name] [FILEREF] [CASE]
FUNCTION
Searches the internal list for a name matching the FIND keyword.
The FIND argument is a wild card. Thus you can search on things
like "Open#?" and get a long list of functions starting with
"Open". Many more wild cards exist, if you do not know how to use
them you should do yourself the favour of learning them - they are
quite powerfull in other situations, too. Of course you can ignore
the wild card feature completely if you know exactly what you are
searching for - or if you do not know wild cards :-).
One important note here: though FR_GET supports all wild cards,
the provided ARexx scripts do not! Only # and ? are supported
through the scripts, except `the script for Shell' which also
supports all wild cards. Confusing, eh?
When no matches are found, an error is returned. If excatly one is
found, the reference is written to the filename specified by the
TO argument. If several references exist to the same keyword, a
window pops up (on the default screen or whatever screen is
specified by the PUBSCREEN argument, see below). This window
contains a listview gadget with the file names of all the files
that contains a reference of the requested name. A double click on
any of these files will get the reference bound to this file. If
the window is closed an error, ("FetchRefs: Aborted!"), is
returned.
The screen, on which this window is to be opened, is specifed by
using the PUBSCREEN argument. You specify the name of a public
screen which may not be in private mode (they rarely are). If the
specified screen is not available (non-existent or non-public) or
if you do not specify PUBSCREEN at all then FetchRefs will open
the window on the currently active screen. Should this not be
public, the default public screen (usually Workbench) is used.
No matter where the window opens that screen will be brought to
front (if it is not already there). When you have finished the
selection and the window closes, the screen is again put behind
the other screens (but only if it was brought to front in the
first place).
If the FILEREF argument is given, each of the files in the index
file will be considered a reference themselves. The name of the
reference is the filename without any leading path or suffixes.
For example, the file 'DINCLUDE:Amiga30/exec/types.h' would be
considered a match if you search for the reference 'types'. The
reason for this truncation is mainly due to the way FetchRefs
works otherwise; types.h must be truncated at the dot if 'types'
was a structure and not a file name - and FetchRefs really has no
way of knowing what it actually is, until the match is already
found; so, the most sensible idea seemed to trucate everything at
the first non alpha-numeric character.
Depending on whether you set the CASE flag or not, the comparsion
of the reference names is either case sensitive (CASE specified)
or case in-sensitive. While case in-sensitivity is a good idea
when you are not certain what you are searching for, case
sensitivity will reduce the number of matches when you search for
something that exist twice, only with different capitalization -
and with a reduced number of matches, you get less confused :-).
To put the reference into the clipboard instead of a file, a
filename of "CLIPnn" should be specified, with nn being the number
of the clipboard unit you wish to use. The "CLIP" word must be in
uppercase, otherwise the name is considered an usual file name.
INPUTS
FIND/A - name of reference to search for. Wild cards accepted.
TO/A - file name to put the result into. "CLIPnn" specifies
the clipboard unit nn.
PUBSCREEN - public screen to open "select reference" window on.
Default is the currently active screen (if public,
otherwise the default public screen).
FILEREF - let a reference search on the base name of a file
match with the entire file.
CASE - activate case sensitive search.
RESULTS
rc will be 0 on success, 10 otherwise.
rc2 contains additional information; if rc is 10 then it will be a
text string describing the error, otherwise rc2 is a number
specifying at what line the most important part of the reference
begins. What is most important depends on the kind of file the
reference is in, but basically if rc is zero, you will most likely
want to jump to line rc2 after having loaded the generated file
into your editor.
BUGS
None known.
SEE ALSO
FetchRefs/FR_NEW FetchRefs/FR_NEW
NAME
FR_NEW -- clear internal index list and load a new
SYNOPSIS
FR_NEW FILE/M
FR_NEW [wildcard ...]
FUNCTION
This is a combination of FR_CLEAR and FR_ADD and results in the
internal list being set to nothing but what's specified by the
FILE arguments.
INPUTS
FILE/M - wild card specification(s) describing what files to load
instead of the current list.
RESULTS
None.
BUGS
None known.
SEE ALSO
FR_ADD, FR_CLEAR
FetchRefs/FR_QUIT FetchRefs/FR_QUIT
NAME
FR_QUIT -- force FetchRefs to quit
SYNOPSIS
FR_QUIT
FUNCTION
Will send a ^C signal to the FetchRefs process that owns the ARexx
port. This will force FetchRefs to free all allocated memory,
close down the ARexx port and exit.
A similar effect can be achived by using the C:Break program,
running FetchRefs again with the `RUNONCE' argument or by sending
a ^C by any other means.
INPUTS
None.
RESULTS
None.
BUGS
None known.
SEE ALSO
exec.library/Signal :-)